package net.qhzw.vip.qiyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.qhzw.vip.qiyu.dto.DeliveryManDto;
import net.qhzw.vip.qiyu.entity.Area;

import java.util.List;

public interface AreaService extends IService<Area> {

    /**
     * 通过pid 查找地址接口
     *
     * @param pid 父id
     * @return
     */
    List<Area> listByPid(Long pid);

    /**
     * 通过pid 清除地址缓存
     *
     * @param pid
     */
    void removeAreaCacheByParentId(Long pid);

    Area getByAreaName(String areaName);

    List<Area> getAreaParentById(Long areaId);


    Area getAreaById(Long areaId);


    List<Long> srchAllChildrenIdByPid(Long pid);


    Area findChildsByPid(Long pid);

    /**
     * 查询提货点地区
     * @param isVip
     * @return
     */
    List<DeliveryManDto> deliveryPntRgn(Integer isVip);
}